import request from '@/utils/request'

// 查询餐厅订单列表
export function listCanteenorder(query) {
  return request({
    url: '/zhhq/canteenorder/list',
    method: 'get',
    params: query
  })
}

// 查询餐厅订单详细
export function getCanteenorder(orderId) {
  return request({
    url: '/zhhq/canteenorder/' + orderId,
    method: 'get'
  })
}

// 新增餐厅订单
export function addCanteenorder(data) {
  return request({
    url: '/zhhq/canteenorder',
    method: 'post',
    data: data
  })
}

// 修改餐厅订单
export function updateCanteenorder(data) {
  return request({
    url: '/zhhq/canteenorder',
    method: 'put',
    data: data
  })
}

// 删除餐厅订单
export function delCanteenorder(orderId) {
  return request({
    url: '/zhhq/canteenorder/' + orderId,
    method: 'delete'
  })
}
